// pages/index/index.js
Component({
    /**
     * 页面的初始数据
     */
    data: {
        pagesArr: [
            { name: '01_初体验和配置', path: '/pages/01demo/index' },
            { name: '02_wxs', path: '/pages/learn_wxs/index' },
            { name: '03_组件化', path: '/pages/learn_component/index' },
            { name: '04_学习登录流程', path: '/pages/learn_login/index' }
        ],
    },
    methods: {
        onButtonTap(event) {
            const { item: { name = '', path = '' } = {} } = event.target.dataset;
            wx.navigateTo({
                url: path,
            })
        }
    }
})